﻿using System;
using System.Collections.Generic;
using Pay.DTO;
using Pay.TO;

namespace Pay.IService {
	public interface ICollectService {
        /// <summary>
        /// 获取某个产品
        /// </summary>
        /// <param name="UserId"></param>
        /// <param name="ProductId"></param>
        /// <returns></returns>
        collect_dto GetCollect(long UserId,long ProductId);
        /// <summary>
        /// 收藏产品
        /// </summary>
        /// <param name="UserId"></param>
        /// <param name="ProductId"></param>
        /// <returns></returns>
        int Add(long UserId, long ProductId);
       /// <summary>
       /// 移除产品
       /// </summary>
       /// <param name="Id"></param>
       /// <returns></returns>
        int Remove(long Id);
        /// <summary>
        /// 我的收藏
        /// </summary>
        /// <param name="UserId"></param>
        /// <returns></returns>
        List<collect_dto> GetCollects(long UserId);
		/// <summary>
		/// 删除收藏
		/// </summary>
		/// <returns>The collect.</returns>
		/// <param name="userId">User identifier.</param>
		/// <param name="productId">Product identifier.</param>
		int DelCollect(long userId, long productId);
    }
}
